package com.aaa.pro.service;

import com.aaa.entity.UmsShopFacility;
import com.aaa.entity.UmsShopInformation;
import com.aaa.pro.dao.StoreDetailsDao;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 类名称：StoreDetailsServiceImpl
 * 功能描述：
 * 作者:
 * 日期：2020/1/13 下午 08:43
 * 版本号：1.0.0
 */
@Service
public class StoreDetailsServiceImpl implements StoreDetailsService {

    @Autowired
    private StoreDetailsDao dao;

    @Override
    public List<UmsShopFacility> list(int shopid) {
        return dao.list(shopid);
    }

    @Override
    public UmsShopInformation details(int shopid) {
        if (dao.details(shopid).size() > 0){
            return dao.details(shopid).get(0);
        }
        return null;
    }
}
